Repository navigation
Stream track downloads and fix cover art, year, and disc tags - #5
Merged
Merged
Conversation
- Download tracks with ResponseHeadersRead and decode asynchronously. HttpClient.Timeout no longer covers the whole download, so large FLACs on slow connections stop timing out, and the track is no longer held in memory twice. A per-read idle timeout (Downloader.ReadTimeout, 60 seconds) throws TimeoutException when the connection stalls. - GetArtBytes throws UnavailableArtException for any unsuccessful CDN response or an empty art ID instead of returning the error page, which was embedded as cover art. - A 0000-00-00 release date no longer fails the whole tag write; the year falls back to the album's dates or is left out. - Write the disc number, and per-disc track count and disc count when Deezer returns the full track list. - Bump to 1.2.4. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Clears the CS1573 warnings the new method added. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #4 so this pull request's checks build and test it. Merge #4 first, then retarget this to
main.Fixes
GetEncryptedTrackDataused the defaultResponseContentRead, so the whole encrypted track was buffered before decryption started andHttpClient.Timeout(100 seconds) covered the entire download. Large FLACs on slow connections failed, andGetRawTrackStreamheld the track in memory twice. Downloads now useResponseHeadersReadand the newDecryption.DecodeTrackStreamAsync. BecauseHttpClient.Timeoutno longer covers the body, a per-read idle timeout (Downloader.ReadTimeout, 60 seconds) throwsTimeoutExceptionwhen the connection stalls. It is aTimeoutExceptionrather than a cancellation, so callers that ignore cancellations still see a failure.GetArtBytesonly threw on 401; any other error response was returned and embedded. It now throwsUnavailableArtExceptionfor any unsuccessful response or an empty art ID. Existing callers already catch it.DateTime.Parsethrew on Deezer's0000-00-00release dates beforeSave(). The year now falls back to the album's dates or is left out.Bumps the version to 1.2.4 and adds the changelog entry.
Tests
TimeoutException; a cancelled token throws a cancellation, not a timeout.ParseYearfor valid, zero, empty, and malformed dates.Not compiled locally; this pull request's build is the first compile.
🤖 Generated with Claude Code